/**
 * 上海中赢金融信息服务有限公司
 * Copyright (c) 2017-2027 Chinazyjr,Inc.All Rights Reserved.
 */

package com.sys.midware.hadoop.model;

import java.io.Serializable;

/**
 * <b>ClassName:</b> BHDFSFile.java <br/>
 * <b>Description:</b> TODO <br/>
 * <b>Date:</b> 2016年3月25日 上午10:55:00<br/>
 * 
 * @author mobing
 * @version
 */
public class BHDFSNodeInfo implements Serializable {
    /**
     * serialVersionUID:TODO
     */
    
    private static final long serialVersionUID = 7167826289530633701L;
    /**
     * 主机名
     */
    private String hostName;
    /**
     * IP地址
     */
    private String IPAddr;
    /**
     * 容量
     */
    private Long  capacity;
    /**
     * 已使用
     */
    private Long  dfsUsed;
    /**
     * 剩余空间
     */
    private Long  remaining;
    public String getHostName() {
        return hostName;
    }
    public void setHostName(String hostName) {
        this.hostName = hostName;
    }
    public String getIPAddr() {
        return IPAddr;
    }
    public void setIPAddr(String iPAddr) {
        IPAddr = iPAddr;
    }
    public Long getCapacity() {
        return capacity;
    }
    public void setCapacity(Long capacity) {
        this.capacity = capacity;
    }
    public Long getDfsUsed() {
        return dfsUsed;
    }
    public void setDfsUsed(Long dfsUsed) {
        this.dfsUsed = dfsUsed;
    }
    public Long getRemaining() {
        return remaining;
    }
    public void setRemaining(Long remaining) {
        this.remaining = remaining;
    }
    @Override
    public String toString() {
        return new StringBuilder().append("BHDFSNodeInfo[")
                .append("hostName=").append(hostName)
                .append(", IPAddr=").append(IPAddr)
                .append(", capacity=").append(capacity/1024/1024 +"MB")
                .append(", dfsUsed=").append(dfsUsed /1024/1024 +"MB")
                .append(", remaining=").append( remaining==null? 0L: remaining/1024/1024 +"MB")
                .append("]\r\n").toString();
    }
    

}
